home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: The RISC OS Graphics CD / Acorn User: The RISC OS Graphics CD.iso / utilities / palmakers / _palmaker / docs / _help next >
Encoding:
Text File  |  2000-01-20  |  11.4 KB  |  269 lines

  1. Name     : PalMaker
  2. Purpose  : Create 256 colour palettes
  3. Author   : Richard Goodwin
  4. Status   : Freeware
  5. Version  : 1.01 (January 2000)
  6. Features : Drag and drop merge, copy or swap; blending, flips, shifts;
  7.            import 16 colour palattes in four styles; individual RGB
  8.            channel control; Risc OS picker for RGB, HSV and CMYK colour
  9.            picking
  10. Web      : http://www.goodwin.uk.com/richard/programs/
  11.  
  12. This program is © Rich Goodwin 1999; it may be freely distributed if:
  13.  
  14. * All files remain intact and unaltered
  15. * No unreasonable charge is made
  16.  
  17. Disclaimer:
  18. ~~~~~~~~~~~
  19. * If it doesn't work, tough.
  20. * If it trashes anything, well, that's a good lesson in taking backups.
  21.  
  22. Background:
  23. ~~~~~~~~~~~
  24. Once upon a time I found a nice 256 colour palette editor buried deep
  25. in a directory on a disc containing something that I would never have
  26. associated with any kind of graphics editing.  I had great fun editing
  27. 256 greyscale digitised images, creating all kinds of moods with heavy
  28. colour saturation, or playing with false-colouring scenes with
  29. complicated palette blends.
  30.  
  31. Then my computer was stolen.
  32.  
  33. I went through every disc I could think of, but could never find that
  34. palette editor again.  Eventually I got Photodesk, which  can do simple
  35. palette editing with blends, but it just wasn't enough - the display
  36. wasn't right, there weren't enough controls and so on.  So, I decided
  37. to write my own.
  38.  
  39. Use:
  40. ~~~~
  41. I hope your mouse buttons are in good working order...
  42.  
  43.  
  44. Mouse operations on the colour window:
  45. * Select (left mouse, single click) - nothing (but see Adjust)
  46. * Menu   (middle mouse button)      - bring up standard menu;
  47.                                       basically allows you to do a
  48.                                       quick palette save
  49. * Adjust (right mouse button)       - start a selection; click Select to end
  50. * Double-click (left mouse button,  - edit colour (using colour picker)
  51.                 click twice quickly)
  52. * Drag (left mouse button,          - one of three operations depending
  53.         held down and moved around)   on options in Tools window
  54.                                       (copy current colour to destination,
  55.                                        or swap the two colours,
  56.                                        or merge the first into the second)
  57.  
  58. All will become clear if you read on... (I hope!)
  59.  
  60. Mouse operations on iconbar icon:
  61. * Select - open colour window
  62. * Menu - bring up menu
  63. * Adjust - open tools
  64.  
  65. Tools:
  66. ~~~~~~
  67. There are essentially two different types of tools in the tools window
  68. - those which can be used at any time and affect the whole palette of
  69. 256 colours, and those which require an area to be selected.  The
  70. "Selection" tools come first.
  71.  
  72. Selection tools:
  73. ~~~~~~~~~~~~~~~~
  74. To create a select area, click on a colour at the start (or end) of the
  75. area you want to change with the RIGHT mouse button (Adjust); then go to
  76. the other end ad click Select (the LEFT mouse button).  You should see
  77. that the area selected has been "slabbed in".
  78.  
  79. You can of course select the whole palette by selecting the first and
  80. last colours, or there's a "Select all" button.  The smallest area you
  81. can select is one colour.
  82.  
  83. To un-select the area, just click on the colour area; any operation
  84. such as selecting a new area, or dragging colours around, will also
  85. cancel the currently select area.  There's also a "Clear selection"
  86. button.
  87.  
  88. * Blend:
  89.   this is probably the most useful tool - you create one colour, create
  90.   a second a little way away, and use this tool to smoothly interpolate
  91.   between the two. For instance, creating black at the start of the
  92.   colours, then white at the end, and blending between the two gives a
  93.   full 256 greyscale palette.
  94.   
  95.   For coloured palettes, try creating black at the start, white at the
  96.   end, and then a colour half-way down - for example, red.  Blend
  97.   between black and the colour, and then white and the colour - you've
  98.   got a red-tinted palette.  Try dropping it onto a 256 greyscale image
  99.   and see the difference. You can extend this by creating a second and
  100.   maybe even a third colour, and blending
  101.   black-colour1-colour2-colour3-white and creating some complex, moody
  102.   palettes to enhance greyscale images.
  103.   
  104. * Invert:
  105.   This makes the currently selected colours turn into negative versions
  106.   of themselves - for instance, black becomes white, red becomes cyan,
  107.   blue becomes orange, green becomes purple and so on.  You can of
  108.   course apply the inversion a second time and the colours return to
  109.   their original values.
  110.   See also Reverse.
  111.   
  112. * Reverse:
  113.   This simply flips the colours around - so a fade from blue to red
  114.   becomes a fade from red to blue.  It might be handy if you've just
  115.   inverted the colours as well, as an inversion also makes dark colours
  116.   light and light colours dark.
  117.   
  118. * Lighten:
  119.   This adds a little brightness to each colour in the blend; it does
  120.   tend to wash the colours out a little, so simply applying "darken"
  121.   will not restore the colours to their original values.  It's useful
  122.   to either just lighten a picture up a little, or used heavily to
  123.   create an "over-exposed" effect (perhaps used sequencially this can
  124.   be used to create a simple fade-out animation?).
  125.   See also Darken.
  126.   
  127. * Darken:
  128.   Essentially the same as Lighten, but making the selected colours
  129.   darker. Also useful for creating dark, moody pictures.
  130.   
  131. Whole palette tools:
  132. ~~~~~~~~~~~~~~~~~~~~
  133. These tools affect the whole palette, no matter what area is selected;
  134. as such they should be used with care!
  135.  
  136. * Mirror
  137.   and
  138. * Flip:
  139.   These two options basically do the same thing - flip the palette over
  140.   so the colours at one side move to the other side.  Mirror does this
  141.   from left to right, and Flip does it from top to bottom.  Flipping the
  142.   palette is not the same as reversing it; consider a greyscale palette,
  143.   with black in colour 0 and white in colour 255; a proper
  144.   inversion/reverse of this will put black in 255 and white in 0.  A
  145.   flip, on the other hand, has black in 240 and white in 15.
  146.  
  147. * Clockwise
  148.   and
  149. * Anticlockwise:
  150.   These two tools rotate the palette around by 90 degrees - either in a
  151.   clockwise direction or anti-clockwise (I hate the Americanism counter-
  152.   clockwise ;).  Two rotations in one direction is the same as a reversal.
  153.  
  154. * Move left
  155.   and
  156. * Move right:  
  157.   This moves the palette left or right by one space; this is useful for
  158.   lightening or darkening a palette without washing the colours out,
  159.   simply by bumping them up the order a little.  Because the operation
  160.   is done with wrap-around - that is, if the colour is pushed off one
  161.   end of the palette (e.g. left of 0) it appears at the other end
  162.   (e.g. now becomes 255) - you might have to edit the top or bottom
  163.   lines of colour to create a properly flowing image.  Or use it over
  164.   and over for a colour cycling effect!
  165.   See also the Shift operations.
  166.  
  167. * Shift up
  168. * Shift down
  169. * Shift left
  170.   and
  171. * Shift right:
  172.   This moves the palette by a whole column or row; shifting up or down
  173.   is like using the Move functions 16 times; I don't know why you'd want
  174.   to shift left or right, but included them for completeness ;)
  175.   
  176. Dragging:
  177. ~~~~~~~~~
  178. You can drag a colour in the palette from one position to a new one;
  179. by default this will Copy the contents of the first colour into the
  180. second one, which is useful if you haven't quite got the colour in the
  181. right place.  For instance, if you create a black to red to white
  182. palette and it looks a little dark, you might want to move the red up a
  183. couple of rows and re-blend it.
  184.  
  185. Swap exchanges the first and second colours, useful if you want to
  186. change one colour but preserve the colours in the destination slot.
  187. For instance, if you're creating a sequence of 16 colour strips of
  188. colour for a game, you might want to simply have the reds before the
  189. blues, but you still need the blues so you swap them over.
  190.  
  191. Merge allows you to build new colours - for instance, if you have a
  192. colour and drag black into it, the colour becomes darker; drag some red
  193. into it and it becomes a little more red and so on.  It means you can
  194. create colours from existing colours in a slightly different way to the
  195. colour picker - you can generally only add red, green and blue or cyan,
  196. magenta, yellow and black from the colour picker, whereas this allows
  197. you to add a tint of any other colour.
  198.  
  199. Channels:
  200. ~~~~~~~~~
  201. By switching on and off the channels you can apply any and all of the
  202. above tools to just the red, green or blue (or in combination to yellow,
  203. magenta or cyan) parts of the colour; so, for instance, if a palette
  204. looks a little too glaring red, you can darken the red channel and it
  205. looks a little more brown, or lighten the green channel to make it more
  206. orange (as red and green go to make yellow in the RGB colour model).
  207. This takes a little geting used to, and can lead to some weird effects!
  208.  
  209. 16-colour palette import:
  210. ~~~~~~~~~~~~~~~~~~~~~~~~~
  211. PalMaker uses 256 colour palettes; however, Risc OS also allows 16
  212. colour palettes to be used, which can be useful for simpler images, and
  213. I already had a number of these due to the 16 colour palette editor I
  214. wrote into !HTML3.  To quickly use these in PalMaker I wrote a 16 colour
  215. palette importer function which has the ability to blend the colours to
  216. fill the whole 256 colour places PalMaker uses.
  217.  
  218. Full blend is the best blending to convert a 16 colour palette to 256
  219. colours - it takes every colour in the 16 colour palette and assigns
  220. them to every seventeenth colour in the 256 colour palette, blending
  221. between them as it goes.  So, if you have a 16 colour palette theat goes
  222. from black to blue to white, you'll have the same effect in 256 colours.
  223.  
  224. Left hand wrap drops the 16 colours into the 16 colours on the left of
  225. the 256 colour palette, and then blends to the colour in the next left
  226. hand slot; this is a more accurate blend than "Full", but if you have a
  227. traditional dark to light 16 colour palette the last line will probaly
  228. be white fading quickly to black, which looks odd.  However, this
  229. wrap-around may be desirable for other effects, such as colour cycling.
  230.  
  231. Row and Column basically just drop the 16 colour palette into the 16
  232. colours of the row or column you drop it on to; for instance, drop a
  233. raindow palette with Column import switched on, make the whole of the
  234. left column black, the whole of the right hand colour white, blend
  235. along the lines, and you have a pretty good games palette for easy
  236. lightshading.
  237.  
  238. Saving:
  239. ~~~~~~~
  240. The save box is, despite it being tacked onto the end of the tools
  241. window, a conventional save box - you can type in full path names and
  242. click "OK", or drag the palette icon to the filer window of your choice.
  243.  
  244. At the moment RAM transfer isn't supported, as !Paint seems to be
  245. broken in this respect.  I thought it might be my dodgy programming,
  246. but it gives the same incorrect error messages when I try to do saves
  247. from other programs that I haven't written (like Photodesk 3), so
  248. either Paint is broken or everything else is.
  249.  
  250. History:
  251. ~~~~~~~~
  252. 1.00 First release.  Also first program I've written which uses redraw
  253.      code and drag and drop editing, and only the second to have a
  254.      proper save routine.
  255. 1.01 Updated to have the colour you're editing included in the colour
  256.      picker title bar; web pages launch even if browser isn't currently
  257.      loaded.
  258.  
  259. Signing off:
  260. ~~~~~~~~~~~~
  261. If you like this, let me know by emailing richard@goodwin.uk.com
  262. You might also be interested in !HTML3 - a HTML helper, which
  263. just happens to have a 16 colour palette editor built in.  It can
  264. be found at http://www.goodwin.uk.com/richard/programs/html3/
  265.  
  266. Rich Goodwin
  267. Saturday, 6th February 1999
  268. mailto:richard@goodwin.uk.com
  269.